pow.ivyclient
Enum AcStatus

java.lang.Object
  extended by java.lang.Enum<AcStatus>
      extended by pow.ivyclient.AcStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AcStatus>

public enum AcStatus
extends java.lang.Enum<AcStatus>

implements the life cycle of a drone when it is detected on the ivy bus. these steps are needed to prevent that a ivy message is processed before that all information about the drone were retrieved these status follow the steps that are followed by the module when a new drone is detected on the bus

Author:
genin
See Also:
Ivy2Udp

Enum Constant Summary
ALIVE
          the module can received ivy message for this drone and send them to the server
ASKING_IVY_CONF
          a request about the configuration has been sent on ivy
ASKING_WEB_ID
          the module sends request to the web server for having a web id for the drone
CONF_NOTOK
          a problem occurred during the process
CONF_OK
          the 2 configuration files have been uploaded successfully
IVY_CONF_RECEIVED
          the configuration has been received from ivy
UNKNOWN
          the system does not know this drone, information are requested
UPLOADING_CONF
          the module upload the two configuration files of the drone on the server
WEB_ID_RECEIVED
          the drone web id has been received from the server
 
Method Summary
static AcStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AcStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNKNOWN

public static final AcStatus UNKNOWN
the system does not know this drone, information are requested


ASKING_IVY_CONF

public static final AcStatus ASKING_IVY_CONF
a request about the configuration has been sent on ivy


IVY_CONF_RECEIVED

public static final AcStatus IVY_CONF_RECEIVED
the configuration has been received from ivy


ASKING_WEB_ID

public static final AcStatus ASKING_WEB_ID
the module sends request to the web server for having a web id for the drone


WEB_ID_RECEIVED

public static final AcStatus WEB_ID_RECEIVED
the drone web id has been received from the server


UPLOADING_CONF

public static final AcStatus UPLOADING_CONF
the module upload the two configuration files of the drone on the server


CONF_OK

public static final AcStatus CONF_OK
the 2 configuration files have been uploaded successfully


ALIVE

public static final AcStatus ALIVE
the module can received ivy message for this drone and send them to the server


CONF_NOTOK

public static final AcStatus CONF_NOTOK
a problem occurred during the process

Method Detail

values

public static AcStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AcStatus c : AcStatus.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AcStatus valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null